import ajax from './ajax.js';
let baseUrl = "https://douban-api.uieee.com/v2/movie/";
export default {
    getTop250(){
        return ajax(baseUrl+'top250');
    },
    getTheaters(){
        return ajax(baseUrl+'in_theaters');
    },
    getComing(){
        return ajax(baseUrl+'coming_soon');
    },
    getMovie(url){
        return ajax(baseUrl+url);
    },
    getDetail(id){
        return ajax(baseUrl+'subject/'+id);
    }
}
